import request from '../../utils/request';
/**
 * 菜单页面接口集合
 * @method signIn 用户登录
 */

//菜单列表接口封装
export function useMenuApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/menus/index',
				method: 'post',
				data,
			});
		},
	};
}

//菜单删除接口封装
export function useMenuDeleteApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/menus/del',
				method: 'post',
				data,
			});
		},
	};
}

//菜单添加/编辑接口封装
export function useMenuAddApi() {
	return {
		signIn: (data: object) => {
			return request({
				url: '/auth/menus/add',
				method: 'post',
				data,
			});
		},
	};
}